<!-- <div class="row about_us design_team"> -->
<?php if ($request == 'main_page'):?>
<script>
$(function() {
	$("div.gallery img").slidingGallery({
		'Pheight': '245',
		'Pwidth': '196',
		'container': $("div.gallery"),
	});
	
	$("#caption span").html($("div.gallery img.start").attr('name'));
	$("#caption span").attr('id', $("div.gallery img.start").attr('id'));
	
	$("div.gallery img").live('click', function() {
		$("#caption span").html($(this).attr('name'));
		$("#caption span").attr('id', $(this).attr('id'));
		//$(this).siblings().removeClass('active');
		//$(this).addClass('active');
		//alert('next: ' + $(this).attr('next'));
	});
	
	$().containerSimulator();
});
</script>
	<div class="span12 center-content gallery">
		<div id="pic">
			<?php foreach ($members as $k => $v):?>
	        <img id="<?php echo $v['id']?>" src="<?php echo $v['pic']['photo_path']?>"<?php if ($k == 0):?> class="start"<?php endif;?> layout="portrait" name="<?php echo $v['name']?>">
	        <?php endforeach;?>
    	</div>
    	<div id="caption">
    		<span></span>
    	</div>
	</div>
<?php elseif ($request == 'sub_page'):?>
<script>
$(function() {
	$('#scrollbar1').tinyscrollbar();
	
	<?php if ($this->common->_is_admin()):?>
	post_option['member_id'] = <?php echo $user['id']?>;
	<?php endif;?>
});
</script>
	<div class="span12 center-content intro">
		<div class="inner-content">
			<div class="span2" id="portrait">
				<img src="<?php echo $pic['thumb_path']?>">
				<div id="caption"><?php echo $user['name']?></div>
			</div>
			<div class="span4">
				<div id="position"><?php if ($position):?><span class="chs"><?php echo $position['name']?></span><span class="en"><?php echo $position['name_en']?></span><?php endif;?></div>
				<div id="region"><?php echo $region['province']?>省<?php echo $region['city']?>市人</div>
				<div id="history">
				<?php if ($history):?>
					<?php foreach ($history as $v):?>
					<p id="<?php echo $v['id']?>">/ <?php echo $v['name']?></p>
					<?php endforeach;?>
				<?php else :?>
					尚未添加任何信息
				<?php endif;?>
				</div>
			</div>
			<div class="span4">
				<div id="scrollbar1">
					<div class="scrollbar"><div class="track"><div class="thumb"><div class="end"></div></div></div></div>
					<div class="viewport">
						<div class="overview" id="design">
							<div id="title">主要设计的施工项目</div>
							<?php if ($design):?>
							<?php foreach ($design as $k => $v):?>
							<p id="<?php echo $v['id']?>">/ <?php echo $v['name']?></p>
							<?php endforeach;?>
							<?php else :?>
								尚未添加任何信息
							<?php endif;?>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
<?php endif;?>
<!-- </div> -->